package wh.jf.factory;

public class ShapeFactory extends AbstractFactory {
    @Override
    public Color getColor(ColorType type) {
        return null;
    }

    @Override
    public Shape getShape(ShapType type){
        Shape shape = null;
        switch (type) {
            case CIRCLE_TYPE: shape = new Circle(); break;
            case SQUARE_TYPE: shape = new Square(); break;
            default: shape = new Rectangle();
        }
        return shape;
    }
}
